$OpenBSD: patch-dcraw_dcraw_c,v 1.1 2015/05/31 06:45:29 kirby Exp $

fix CVE-2015-3885
Upstream commit 7f5615e7355fab256e22fb7db0b739850d17a0b1

--- dcraw/dcraw.c.orig	Fri Jan 17 01:27:55 2014
+++ dcraw/dcraw.c	Tue May 26 13:09:53 2015
@@ -768,7 +768,8 @@ struct jhead {
 
 int CLASS ljpeg_start (struct jhead *jh, int info_only)
 {
-  int c, tag, len;
+  int c, tag;
+  ushort len;
   uchar data[0x10000];
   const uchar *dp;
 
